package edu.zqu.instructionalMatters.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.zqu.instructionalMatters.project.entity.Office;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 何文东
 * @Date 2020-07-03
 * @Description: 办公室 - Mapper 接口
 * @Version 1.0
 */
public interface OfficeMapper extends BaseMapper<Office> {
    @Select("<script>" + "select * from office where college_id = #{collegeId} " +
            " <if test = 'fieldTypeId != null'>" +
            " and field_type_id = #{fieldTypeId}" +
            " </if>" + "</script>")
    public List<Office> findAll(Office office);
}
